{include file="layout/header" title="会员列表" /}
	<div class="view-body">
    {include file="layout/menu" /}
		<div class="view-product">
			<div class="company_identify">
				<div class="manage-head">
					<h6 class="padding-left manage-head-con">会员列表</h6>
				</div>

				<form class="layui-form" action="{:url('admin/User/index')}" method="post" name="userForm">
					<div class="layui-form-item">
					    <label class="layui-form-label">状态</label>
					    <div class="layui-input-inline">
					      	<select name="status">
					      		<option value="2" >所有的</option>
					      		<option value="1" >正常</option>
					        	<option value="0" >冻结</option>
					      	</select>
					    </div>
					    <label class="layui-form-label">类型</label>
					    <div class="layui-input-inline">
					      	<select name="userType">
					      		<option value="2" >所有的</option>
					      		<option value="1" >代理</option>
					        	<option value="0" >会员</option>
					      	</select>
					    </div>
					    <label class="layui-form-label">筛选</label>
						<div class="layui-input-inline">
							<select name="type">
					      		<option value="1" >用户名</option>
					        	<option value="2" >用户ID</option>
					        	<option value="3" >手机</option>
					        	<option value="4" >邮箱</option>
					      	</select>
					    </div>
					    <div class="layui-input-inline">
					      	<input type="text" name="keyword" lay-verify="title" placeholder="" class="layui-input">
					    </div>
						<div class="layui-input-inline">
					      	<button class="layui-btn layui-btn-primary">确定</button>
					    </div>
					</div>
				</form>

				<div class="offcial-table tr-border table-margin clearfix">
					<div class="tr-th clearfix">
						<div class="th w5">选择</div>
						<div class="th w5">UID</div>
						<div class="th w10">用户名</div>
            			<div class="th w10">手机号</div>
						<div class="th w15">邮箱</div>
						<div class="th w10">等级</div>
						<div class="th w20">充值&nbsp;&nbsp;提现&nbsp;&nbsp;游戏&nbsp;&nbsp;购物</div>
						<div class="th w5">代理</div>
						<div class="th w5">状态</div>
						<div class="th w10">操作</div>
					</div>
						{volist name="users" id="v"}
						<div class="tr clearfix border-bottom-none">
							<div class="th w5">
								<input type="checkbox" name="ids" value="{$v.id}">
							</div>
							<div class="td w5">{$v.id}</div>
							<div class="td w10">{$v.username}</div>
							<div class="td w10">{$v.mobile}</div>
							<div class="td w15">{$v.email}</div>
							<div class="td w10">{:get_level_name($v.level)}</div>
							<div class="td w20">{$v.recharge}&nbsp;&nbsp;{$v.money}&nbsp;&nbsp;{$v.game}&nbsp;&nbsp;{$v.shopping}</div>
							<div class="td w5">{$v.agent ? '是':'否'}</div>
							<div class="td w5">{$v.status ? '正常':'冻结'}</div>
							<div class="td w10">
								<a href="javascript:;" w="500px" h="450px" title="加减币" url="{:url('admin/Currency/incDec',['user_id'=>$v['id']])}" class="layui-btn layui-btn-mini layui-btn-primary layui_iframe">加减币</a>

								<a href="javascript:;" w="800px" h="450px" title="编辑用户信息" url="{:url('admin/User/edit',['id'=>$v['id']])}" class="layui-btn layui-btn-mini layui-btn-warm layui_iframe">编辑</a>
								{if $v.status == 1}
									<a href="{:url('admin/User/lock',['id'=>$v['id']])}" msg="确定冻结？" class="layui-btn layui-btn-mini layui-btn-danger layui_confirm">冻结</a>
								{else /}
									<a href="{:url('admin/User/lock',['id'=>$v['id'],'status'=>1])}" msg="确定恢复？" class="layui-btn layui-btn-mini layui-btn-normal layui_confirm">恢复</a>
								{/if}
							</div>
						</div>
						{/volist}
				</div>

				<div class="fl margin-top padding-big-left">
					<button class="layui-btn layui-btn-primary layui-btn-small select_all" style="margin-bottom: 8px;">全选</button>
					<button class="layui-btn layui-btn-primary layui-btn-small delete_all" url="{:url('admin/User/lock')}" style="margin-bottom: 8px;">批量冻结</button>
				</div>

				<div class="fr padding-big-right">
					<div class="page">
						{$users->render()}
					</div>
				</div>

			</div>
		</div>
	</div>
	<script type="text/javascript">
		var formObj = new Form('userForm');
	        formObj.init({$post});
	</script>
{include file="layout/footer" /}
